<!DOCTYPE HTML><html><head><title>touzq API文档</title><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="generator" content="https://github.com/raml2html/raml2html 3.0.1"><link rel="stylesheet" href="3rd/bootstrap/bootstrap.min.css"><link rel="stylesheet" href="3rd/highlight.js/default.min.css"><script type="text/javascript" src="3rd/jquery/jquery-1.11.0.min.js"></script><script type="text/javascript" src="3rd/bootstrap/bootstrap.min.js"></script><script type="text/javascript" src="3rd/highlight.js/highlight.min.js"></script><script type="text/javascript">
      $(document).ready(function() {
        $('.page-header pre code, .top-resource-description pre code, .modal-body pre code').each(function(i, block) {
          hljs.highlightBlock(block);
        });

        $('[data-toggle]').click(function() {
          var selector = $(this).data('target') + ' pre code';
          $(selector).each(function(i, block) {
            hljs.highlightBlock(block);
          });
        });

        // open modal on hashes like #_action_get
        $(window).bind('hashchange', function(e) {
          var anchor_id = document.location.hash.substr(1); //strip #
          var element = $('#' + anchor_id);

          // do we have such element + is it a modal?  --> show it
          if (element.length && element.hasClass('modal')) {
            element.modal('show');
          }
        });

        // execute hashchange on first page load
        $(window).trigger('hashchange');

        // remove url fragment on modal hide
        $('.modal').on('hidden.bs.modal', function() {
          try {
            if (history && history.replaceState) {
                history.replaceState({}, '', '#');
            }
          } catch(e) {}
        });
      });
    </script><style>
      .hljs {
        background: transparent;
      }
      .parent {
        color: #999;
      }
      .list-group-item > .badge {
        float: none;
        margin-right: 6px;
      }
      .panel-title > .methods {
        float: right;
      }
      .badge {
        border-radius: 0;
        text-transform: uppercase;
        width: 70px;
        font-weight: normal;
        color: #f3f3f6;
        line-height: normal;
      }
      .badge_get {
        background-color: #63a8e2;
      }
      .badge_post {
        background-color: #6cbd7d;
      }
      .badge_put {
        background-color: #22bac4;
      }
      .badge_delete {
        background-color: #d26460;
      }
      .badge_patch {
        background-color: #ccc444;
      }
      .list-group, .panel-group {
        margin-bottom: 0;
      }
      .panel-group .panel+.panel-white {
        margin-top: 0;
      }
      .panel-group .panel-white {
        border-bottom: 1px solid #F5F5F5;
        border-radius: 0;
      }
      .panel-white:last-child {
        border-bottom-color: white;
        -webkit-box-shadow: none;
        box-shadow: none;
      }
      .panel-white .panel-heading {
        background: white;
      }
      .tab-pane ul {
        padding-left: 2em;
      }
      .tab-pane h1 {
        font-size: 1.3em;
      }
      .tab-pane h2 {
        font-size: 1.2em;
        padding-bottom: 4px;
        border-bottom: 1px solid #ddd;
      }
      .tab-pane h3 {
        font-size: 1.1em;
      }
      .tab-content {
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
        padding: 10px;
      }
      #sidebar {
        margin-top: 30px;
        padding-right: 5px;
        overflow: auto;
        height: 90%;
      }
      .top-resource-description {
        border-bottom: 1px solid #ddd;
        background: #fcfcfc;
        padding: 15px 15px 0 15px;
        margin: -15px -15px 10px -15px;
      }
      .resource-description {
        border-bottom: 1px solid #fcfcfc;
        background: #fcfcfc;
        padding: 15px 15px 0 15px;
        margin: -15px -15px 10px -15px;
      }
      .resource-description p:last-child {
        margin: 0;
      }
      .list-group .badge {
        float: left;
      }
      .method_description {
        margin-left: 85px;
      }
      .method_description p:last-child {
        margin: 0;
      }
      .list-group-item {
        cursor: pointer;
      }
      .list-group-item:hover {
        background-color: #f5f5f5;
      }

      pre code {
        overflow: auto;
        word-wrap: normal;
        white-space: pre;
      }
    </style></head><body data-spy="scroll" data-target="#sidebar"><div class="container"><div class="row"><div class="col-md-9" role="main"><div class="page-header"><h1>touzq API文档 <small>version 1</small></h1><p>http://www.touzq.com/api</p><h3 id="--"><a href="#--">文档</a></h3><ul><li><a href="mdwiki.html#!document/publicRetCode.md">公共错误码</a></li><li><a href="gm.html">gm</a></li></ul></div><div class="panel panel-default"><div class="panel-heading"><h3 id="user" class="panel-title">/user</h3></div><div class="panel-body"><div class="top-resource-description"><p>用户模块</p></div><div class="panel-group"><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_user_auth"><span class="parent">/user</span>/auth</a> <span class="methods"><a href="#user_auth_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_user_auth" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#user_auth_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>验证登陆态</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="user_auth_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/user</span>/auth</h4></div><div class="modal-body"><div class="alert alert-info"><p>验证登陆态</p></div><ul class="nav nav-tabs"><li class="active"><a href="#user_auth_get_request" data-toggle="tab">请求</a></li><li><a href="#user_auth_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="user_auth_get_request"><h3>Query参数</h3><ul><li><strong>token</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="user_auth_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_user_login"><span class="parent">/user</span>/login</a> <span class="methods"><a href="#user_login_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_user_login" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#user_login_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>用户登陆</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="user_login_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/user</span>/login</h4></div><div class="modal-body"><div class="alert alert-info"><p>用户登陆</p></div><ul class="nav nav-tabs"><li class="active"><a href="#user_login_get_request" data-toggle="tab">请求</a></li><li><a href="#user_login_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="user_login_get_request"><h3>Query参数</h3><ul><li><strong>account</strong>: <em>required (string)</em><p>账号（大陆手机号）</p></li><li><strong>password</strong>: <em>required (string)</em><p>该密码要hex(sha1(password))后再提交</p></li></ul></div><div class="tab-pane" id="user_login_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li><li>100201 账户没有关联uid</li><li>100202 用户数据不存在</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "token": "token串"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_user_sendCode"><span class="parent">/user</span>/sendCode</a> <span class="methods"><a href="#user_sendCode_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_user_sendCode" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#user_sendCode_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>发送验证码</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="user_sendCode_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/user</span>/sendCode</h4></div><div class="modal-body"><div class="alert alert-info"><p>发送验证码</p></div><ul class="nav nav-tabs"><li class="active"><a href="#user_sendCode_get_request" data-toggle="tab">请求</a></li><li><a href="#user_sendCode_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="user_sendCode_get_request"><h3>Query参数</h3><ul><li><strong>num</strong>: <em>required (string)</em><p>账号（大陆手机号）</p></li><li><strong>type</strong>: <em>required (integer)</em><p>验证码类型</p><ul><li>1: 快速登陆验证码</li><li>2: 重置密码验证码</li><li>3: 注册验证码</li></ul></li></ul></div><div class="tab-pane" id="user_sendCode_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_user_register"><span class="parent">/user</span>/register</a> <span class="methods"><a href="#user_register_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_user_register" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#user_register_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>注册</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="user_register_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/user</span>/register</h4></div><div class="modal-body"><div class="alert alert-info"><p>注册</p></div><ul class="nav nav-tabs"><li class="active"><a href="#user_register_get_request" data-toggle="tab">请求</a></li><li><a href="#user_register_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="user_register_get_request"><h3>Query参数</h3><ul><li><strong>password</strong>: <em>required (string)</em><p>该密码要hex(sha1(password))后再提交</p></li><li><strong>account</strong>: <em>required (string)</em><p>账号（大陆手机号）</p></li><li><strong>code</strong>: <em>required (string)</em><p>用户收到的短信验证码</p></li><li><strong>email</strong>: <em>(string)</em><p>注册邮箱</p></li><li><strong>inviteUid</strong>: <em>(integer)</em><p>邀请人id</p></li></ul></div><div class="tab-pane" id="user_register_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_user_quickLogin"><span class="parent">/user</span>/quickLogin</a> <span class="methods"><a href="#user_quickLogin_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_user_quickLogin" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#user_quickLogin_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>快速登陆</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="user_quickLogin_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/user</span>/quickLogin</h4></div><div class="modal-body"><div class="alert alert-info"><p>快速登陆</p></div><ul class="nav nav-tabs"><li class="active"><a href="#user_quickLogin_get_request" data-toggle="tab">请求</a></li><li><a href="#user_quickLogin_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="user_quickLogin_get_request"><h3>Query参数</h3><ul><li><strong>account</strong>: <em>required (string)</em><p>账号（大陆手机号）</p></li><li><strong>code</strong>: <em>required (string)</em><p>用户收到的短信验证码</p></li></ul></div><div class="tab-pane" id="user_quickLogin_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><pre><code>* 参照公共错误码
* 100501 账户没有关联uid
* 100502 用户数据不存在
</code></pre><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "token": "token串"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_user_reset"><span class="parent">/user</span>/reset</a> <span class="methods"><a href="#user_reset_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_user_reset" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#user_reset_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>重置密码</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="user_reset_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/user</span>/reset</h4></div><div class="modal-body"><div class="alert alert-info"><p>重置密码</p></div><ul class="nav nav-tabs"><li class="active"><a href="#user_reset_get_request" data-toggle="tab">请求</a></li><li><a href="#user_reset_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="user_reset_get_request"><h3>Query参数</h3><ul><li><strong>code</strong>: <em>required (string)</em><p>用户收到的短信验证码</p></li><li><strong>password</strong>: <em>required (string)</em><p>该密码要hex(sha1(password))后再提交</p></li><li><strong>account</strong>: <em>required (string)</em><p>账号（大陆手机号）</p></li></ul></div><div class="tab-pane" id="user_reset_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_user_resetInfo"><span class="parent">/user</span>/resetInfo</a> <span class="methods"><a href="#user_resetInfo_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_user_resetInfo" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#user_resetInfo_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>设置玩家基础信息</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="user_resetInfo_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/user</span>/resetInfo</h4></div><div class="modal-body"><div class="alert alert-info"><p>设置玩家基础信息</p></div><ul class="nav nav-tabs"><li class="active"><a href="#user_resetInfo_get_request" data-toggle="tab">请求</a></li><li><a href="#user_resetInfo_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="user_resetInfo_get_request"><h3>Query参数</h3><ul><li><strong>nick</strong>: <em>(string)</em><p>昵称</p></li><li><strong>mobile</strong>: <em>(string)</em><p>手机</p></li><li><strong>email</strong>: <em>(string)</em><p>电子邮箱</p></li></ul></div><div class="tab-pane" id="user_resetInfo_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li><li>100701 账户没有关联uid</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_user_inviteInfo"><span class="parent">/user</span>/inviteInfo</a> <span class="methods"><a href="#user_inviteInfo_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_user_inviteInfo" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#user_inviteInfo_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>我邀请的人</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="user_inviteInfo_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/user</span>/inviteInfo</h4></div><div class="modal-body"><div class="alert alert-info"><p>我邀请的人</p></div><ul class="nav nav-tabs"><li class="active"><a href="#user_inviteInfo_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="user_inviteInfo_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "data": [
        {
            "uid": "玩家id",
            "nick": "昵称",
            "icon": "图标",
        }
    ]
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_user_getInfo"><span class="parent">/user</span>/getInfo</a> <span class="methods"><a href="#user_getInfo_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_user_getInfo" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#user_getInfo_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>用户详情</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="user_getInfo_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/user</span>/getInfo</h4></div><div class="modal-body"><div class="alert alert-info"><p>用户详情</p></div><ul class="nav nav-tabs"><li class="active"><a href="#user_getInfo_get_request" data-toggle="tab">请求</a></li><li><a href="#user_getInfo_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="user_getInfo_get_request"><h3>Query参数</h3><ul><li><strong>token</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="user_getInfo_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
  "ret": 0,
  "data": {
    "uid": "玩家id",
    "nick": "昵称",
    "icon": "图标",
    "mobile": "手机号",
    "registerTime": "注册时间",
    "registerIP": "注册IP",
    "prevLoginTime": "上一次登陆时间",
    "prevLoginIP": "上一次登陆IP",
    "lastLoginTime": "最后登陆时间",
    "lastLoginIP": "最后登陆IP",
    "loginCount": "登陆次数",
    "inviteUid": "邀请人",
  }
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_user_out"><span class="parent">/user</span>/out</a> <span class="methods"><a href="#user_out_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_user_out" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#user_out_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>退出登录</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="user_out_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/user</span>/out</h4></div><div class="modal-body"><div class="alert alert-info"><p>退出登录</p></div><ul class="nav nav-tabs"><li class="active"><a href="#user_out_get_request" data-toggle="tab">请求</a></li><li><a href="#user_out_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="user_out_get_request"><h3>Query参数</h3><ul><li><strong>token</strong>: <em>required (string)</em></li></ul></div><div class="tab-pane" id="user_out_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h3 id="article" class="panel-title">/article</h3></div><div class="panel-body"><div class="top-resource-description"><p>文章模块</p></div><div class="panel-group"><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_article_base"><span class="parent">/article</span>/base</a> <span class="methods"><a href="#article_base_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_article_base" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#article_base_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>获取一篇爆料文章的基本内容</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="article_base_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/article</span>/base</h4></div><div class="modal-body"><div class="alert alert-info"><p>获取一篇爆料文章的基本内容</p></div><ul class="nav nav-tabs"><li class="active"><a href="#article_base_get_request" data-toggle="tab">请求</a></li><li><a href="#article_base_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="article_base_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li></ul></div><div class="tab-pane" id="article_base_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>服务器执行异常会返回99901错误</li><li>没有填写aid会返回99902错误</li><li>aid不存在会返回99903错误</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "pre": "文章前一篇id，为0即最顶端",
    "next": "文章后一篇id，为-1即最底端",
    "data": {
        "aid": 1,
        "platform": "平台名称",
        "title": "活动标题",
        "content1": "内容-活动核心利益",
        "content2": "内容-参与资格",
        "content3": "内容-其他",
        "mainImageUrl": "http://图片url",
        "targetUrl": "http://该文章对应的外链url",
        "createTime": 1477044130,
        "activityBeginTime": 1477044130,
        "activityEndTime": 1477144130,
        "moreImageUrl": "http://其他图片1^http://其他图片2",
        "tags": "标签1^标签2^标签3",
        "cid": 1,
        "column": "所属栏目, 上面的cid是栏目Id",
        "platformLogoUrl": "平台LOGO的url",
        "platformType": "平台类型",
        "registerMoney": "注册资本",
        "platformInfo1": "平台团队情况",
        "platformInfo2": "业务情况",
        "platformInfo3": "经营成果",
        "uid": 1000432,
        "nick": "作者名称，上面的uid是作者Id"
    }
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_article_data"><span class="parent">/article</span>/data</a> <span class="methods"><a href="#article_data_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_article_data" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#article_data_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>获取一篇爆料文章的动态数据（评论数、靠谱数、不靠谱数）</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="article_data_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/article</span>/data</h4></div><div class="modal-body"><div class="alert alert-info"><p>获取一篇爆料文章的动态数据（评论数、靠谱数、不靠谱数）</p></div><ul class="nav nav-tabs"><li class="active"><a href="#article_data_get_request" data-toggle="tab">请求</a></li><li><a href="#article_data_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="article_data_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li></ul></div><div class="tab-pane" id="article_data_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>服务器执行异常会返回99901错误</li><li>没有填写aid会返回99902错误</li><li>aid不存在会返回99903错误</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "data": {
        "aid": 1,
        "readCount": 123,
        "commentCount": 24,
        "goodCount": 66,
        "badCount": 5
    }
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_article_comment"><span class="parent">/article</span>/comment</a> <span class="methods"><a href="#article_comment_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_article_comment" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#article_comment_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>分页获取评论列表</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="article_comment_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/article</span>/comment</h4></div><div class="modal-body"><div class="alert alert-info"><p>分页获取评论列表</p></div><ul class="nav nav-tabs"><li class="active"><a href="#article_comment_get_request" data-toggle="tab">请求</a></li><li><a href="#article_comment_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="article_comment_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li><li><strong>pageIndex</strong>: <em>required (integer)</em><p>请求页码，1为首页</p></li><li><strong>needCount</strong>: <em>required (integer)</em><p>每页数量，必须大于0</p></li><li><strong>order</strong>: <em>(integer)</em><p>排序规则，0为最新排序，1为最热排序，默认为0</p></li></ul></div><div class="tab-pane" id="article_comment_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>服务器执行异常会返回99901错误</li><li>缺少参数会返回99902错误</li><li>aid不存在会返回99903错误</li><li>参数异常会返回99904错误</li><li>data中的评论，pmid不为0，则表示回复的评论id</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
	"ret":0,
	"data":[
		{
			"pmid":0,
			"mid":1,
			"source":"",
			"icon":"",
			"nick":"",
			"uid":10001,
			"time":"0000-00-00 00:00:00",
			"replyCount":1,
			"goodCount":0,
			"aid":100,
			"content":"hello",
			"badCount":0
		},
		{
			"pmid":0,
			"mid":3,
			"source":"android客户端",
			"icon":"",
			"nick":"",
			"uid":10002,
			"time":"2017-02-18 20:46:43",
			"replyCount":0,
			"goodCount":0,
			"aid":100,
			"content":"评论2",
			"badCount":0
		},
		{
			"pmid":1,
			"mid":2,
			"source":"",
			"icon":"",
			"nick":"",
			"uid":10001,
			"time":"0000-00-00 00:00:00",
			"replyCount":0,
			"goodCount":0,
			"aid":100,
			"content":"hello1",
			"badCount":0
		}
	],
	"commentCount":2
}</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_article_addComment"><span class="parent">/article</span>/addComment</a> <span class="methods"><a href="#article_addComment_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_article_addComment" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#article_addComment_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>发表评论或回复评论（pmid不为空）</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="article_addComment_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/article</span>/addComment</h4></div><div class="modal-body"><div class="alert alert-info"><p>发表评论或回复评论（pmid不为空）</p></div><ul class="nav nav-tabs"><li class="active"><a href="#article_addComment_get_request" data-toggle="tab">请求</a></li><li><a href="#article_addComment_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="article_addComment_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li><li><strong>content</strong>: <em>required (string)</em><p>评论内容</p></li><li><strong>source</strong>: <em>(string)</em><p>评论来源(android客户端、iOS客户端、网页)</p></li><li><strong>pmid</strong>: <em>(integer)</em><p>回复的评论id</p></li></ul></div><div class="tab-pane" id="article_addComment_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>缺少参数会返回99902错误</li><li>aid不存在会返回99903错误</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
	"data":{
		"aid":100,
		"mid":9,
		"pmid":0,
		"content":"测试回复评论",
		"source":"android客户端",
		"time":"2017-02-19 00:42:44",
		"goodCount":0,
		"badCount":0,
		"replyCount":0
	}
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_article_addCommentVote"><span class="parent">/article</span>/addCommentVote</a> <span class="methods"><a href="#article_addCommentVote_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_article_addCommentVote" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#article_addCommentVote_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>对评论点赞或踩</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="article_addCommentVote_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/article</span>/addCommentVote</h4></div><div class="modal-body"><div class="alert alert-info"><p>对评论点赞或踩</p></div><ul class="nav nav-tabs"><li class="active"><a href="#article_addCommentVote_get_request" data-toggle="tab">请求</a></li><li><a href="#article_addCommentVote_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="article_addCommentVote_get_request"><h3>Query参数</h3><ul><li><strong>mid</strong>: <em>required (integer)</em><p>评论id</p></li><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li><li><strong>vote</strong>: <em>required (integer)</em><p>点赞或踩，0为好评，否则为差评</p></li></ul></div><div class="tab-pane" id="article_addCommentVote_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>服务器执行异常会返回99901错误</li><li>缺少参数会返回99902错误</li><li>正常操作后，会更新comment数据；重复操作，返回不会下带data</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
	"data":{
		"aid":100,
		"mid":9,
		"pmid":0,
		"content":"测试回复评论",
		"source":"android客户端",
		"time":"2017-02-19 00:42:44",
		"goodCount":1,
		"badCount":0,
		"replyCount":0
	}
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_article_addArticleVote"><span class="parent">/article</span>/addArticleVote</a> <span class="methods"><a href="#article_addArticleVote_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_article_addArticleVote" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#article_addArticleVote_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>对文章点赞或踩</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="article_addArticleVote_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/article</span>/addArticleVote</h4></div><div class="modal-body"><div class="alert alert-info"><p>对文章点赞或踩</p></div><ul class="nav nav-tabs"><li class="active"><a href="#article_addArticleVote_get_request" data-toggle="tab">请求</a></li><li><a href="#article_addArticleVote_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="article_addArticleVote_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li><li><strong>vote</strong>: <em>required (integer)</em><p>点赞或踩，0为好评，否则为差评</p></li></ul></div><div class="tab-pane" id="article_addArticleVote_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>服务器执行异常会返回99901错误</li><li>缺少参数会返回99902错误</li><li>重复操作会返回110601错误</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_article_list"><span class="parent">/article</span>/list</a> <span class="methods"><a href="#article_list_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_article_list" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#article_list_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>按创建时间倒序（新的在前） 分页所有文章</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="article_list_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/article</span>/list</h4></div><div class="modal-body"><div class="alert alert-info"><p>按创建时间倒序（新的在前） 分页所有文章</p></div><ul class="nav nav-tabs"><li class="active"><a href="#article_list_get_request" data-toggle="tab">请求</a></li><li><a href="#article_list_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="article_list_get_request"><h3>Query参数</h3><ul><li><strong>startAid</strong>: <em>(integer - default: 0)</em><p>接着哪个aid继续获取记录。分页获取时，这个值填上一页的最后一条记录的aid</p></li><li><strong>pageSize</strong>: <em>(integer - default: 10)</em><p>每页多少条记录，默认是10条</p></li><li><strong>startTime</strong>: <em>(integer - default: 0)</em><p>搜索起始时间(时间戳格式)</p></li><li><strong>endTime</strong>: <em>(integer - default: 当前时间)</em><p>搜索结束时间(时间戳格式)</p></li><li><strong>sortType</strong>: <em>(integer - default: 0)</em><p>排序方式，0按创建时间倒序排序；1按阅读量倒序排序；2按评论数倒序排序</p></li></ul></div><div class="tab-pane" id="article_list_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>pageSize同请求</li><li>allCount是总记录条数</li><li>错误码：<ul><li>99901 系统错误</li><li>99902 缺少参数</li></ul></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "pageSize": 10,
    "allCount": 53,
    "data": [
        {
            "aid": 1,
            "title": "标题",
            "platform": "平台名称",
            "title": "活动标题",
            "mainImageUrl": "http://图片url",
            "tags": "标签1^标签2^标签3",
            "createTime": 1477044130,
            "readCount": 0,
            "commentCount": 0,
            "badCount": 0,
            "goodCount": 0,
        }
    ]
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_article_search"><span class="parent">/article</span>/search</a> <span class="methods"><a href="#article_search_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_article_search" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#article_search_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>搜索文章</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="article_search_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/article</span>/search</h4></div><div class="modal-body"><div class="alert alert-info"><p>搜索文章</p></div><ul class="nav nav-tabs"><li class="active"><a href="#article_search_get_request" data-toggle="tab">请求</a></li><li><a href="#article_search_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="article_search_get_request"><h3>Query参数</h3><ul><li><strong>keySyr</strong>: <em>required (string)</em><p>搜索关键字</p></li><li><strong>beginAid</strong>: <em>required (integer)</em><p>文章开始ID</p></li><li><strong>sizeI</strong>: <em>required (integer)</em><p>文章数量</p></li></ul></div><div class="tab-pane" id="article_search_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>错误码：<ul><li>99901 系统错误</li><li>99902 缺少参数</li></ul></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
  "ret": 0,
  "data": [
    {
      "aid": 1,
      "platform": "平台名称",
      "title": "活动标题",
      "content1": "内容-活动核心利益",
      "content2": "内容-参与资格",
      "content3": "内容-其他",
      "mainImageUrl": "http://图片url",
      "targetUrl": "http://该文章对应的外链url",
      "createTime": 1477044130,
      "activityBeginTime": 1477044130,
      "activityEndTime": 1477144130,
      "moreImageUrl": "http://其他图片1^http://其他图片2",
      "tags": "标签1^标签2^标签3",
      "cid": 1,
      "column": "所属栏目, 上面的cid是栏目Id",
      "platformLogoUrl": "平台LOGO的url",
      "platformType": "平台类型",
      "registerMoney": "注册资本",
      "platformInfo1": "平台团队情况",
      "platformInfo2": "业务情况",
      "platformInfo3": "经营成果",
      "uid": 1000432,
      "nick": "作者名称，上面的uid是作者Id"
    }
  ]
}
</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h3 id="index" class="panel-title">/index</h3></div><div class="panel-body"><div class="top-resource-description"><p>首页的相关API</p></div><div class="panel-group"><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_index_info"><span class="parent">/index</span>/info</a> <span class="methods"><a href="#index_info_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_index_info" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#index_info_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>获取首页的相关信息</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="index_info_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/index</span>/info</h4></div><div class="modal-body"><div class="alert alert-info"><p>获取首页的相关信息</p></div><ul class="nav nav-tabs"><li class="active"><a href="#index_info_get_request" data-toggle="tab">请求</a></li><li><a href="#index_info_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="index_info_get_request"><h3>Query参数</h3><ul><li><strong>token</strong>: <em>(string)</em><p>如果有token就带上token</p></li></ul></div><div class="tab-pane" id="index_info_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>user: 用户如果没有登陆，则data.user字段不存在</li><li>banner: 轮播图</li><li>hotArticles: 最热门活动，数组，但目前只会有一条</li><li>goodArticles: 最靠谱活动，数组，除了第一条有mainImageUrl外，后面的没有mainImageUrl字段。goodData是靠谱指数，不同于靠谱数。</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "data": {
        "user": {
            "uid": 1000432,
            "nick": "用户昵称",
            "icon": "头像信息",
            "draftCount": "草稿数量",
            "lookCount": "审核中数量",
            "rebutCount": "驳回的数量",
            "passCount": "已发布数量"
        },
        "banner": [
            {
                "imageUrl": "轮播图片url",
                "linkUrl": "点击后跳转的url"
            }
        ],
        "hotArticles": [
            {
                "aid": 1,
                "mainImageUrl": "http://图片url",
                "targetUrl": "http://该文章对应的外链url",
                "commentCount": 24
            }
        ],
        "goodArticles": [
            {
                "aid": 1,
                "title": "活动标题",
                "mainImageUrl": "http://图片url",
                "goodData": 432,
                "commentCount": 24
            },
            {
                "aid": 2,
                "title": "活动标题",
                "mainImageUrl": "http://图片url",
                "goodData": 432,
                "commentCount": 24
            },
            {
                "aid": 3,
                "title": "活动标题",
                "mainImageUrl": "http://图片url",
                "goodData": 432,
                "commentCount": 24
            }
        ]
    }
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_index_list"><span class="parent">/index</span>/list</a> <span class="methods"><a href="#index_list_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_index_list" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#index_list_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>分页获取首页的文章列表</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="index_list_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/index</span>/list</h4></div><div class="modal-body"><div class="alert alert-info"><p>分页获取首页的文章列表</p></div><ul class="nav nav-tabs"><li class="active"><a href="#index_list_get_request" data-toggle="tab">请求</a></li><li><a href="#index_list_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="index_list_get_request"><h3>Query参数</h3><ul><li><strong>page</strong>: <em>(integer - default: 1)</em><p>获取第几页, 不填时默认是第1页</p></li></ul></div><div class="tab-pane" id="index_list_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>本接口不会返回总页数，如果返回的data里是空的表示到最后了。</p><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "page": 1,
    "data": [
        {
            "aid": 1,
            "platform": "平台名称",
            "title": "活动标题",
            "summary": "摘要信息，是从活动核心利益选取的一部分内容",
            "mainImageUrl": "http://图片url",
            "targetUrl": "http://该文章对应的外链url",
            "createTime": 1477044130,
            "activityBeginTime": 1477044130,
            "activityEndTime": 1477144130,
            "tags": "标签1^标签2^标签3",
            "uid": 1000432,
            "nick": "作者名称，上面的uid是作者Id",
            "readCount": 123,
            "commentCount": 24,
            "goodCount": 66,
            "badCount": 5
        },
        {
            "aid": 2,
            "platform": "平台名称",
            "title": "活动标题",
            "summary": "摘要信息，是从活动核心利益选取的一部分内容",
            "mainImageUrl": "http://图片url",
            "targetUrl": "http://该文章对应的外链url",
            "createTime": 1477044130,
            "activityBeginTime": 1477044130,
            "activityEndTime": 1477144130,
            "tags": "标签1^标签2^标签3",
            "uid": 1000432,
            "nick": "作者名称，上面的uid是作者Id",
            "readCount": 123,
            "commentCount": 24,
            "goodCount": 66,
            "badCount": 5
        }
    ]
}
</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h3 id="draft" class="panel-title">/draft</h3></div><div class="panel-body"><div class="top-resource-description"><p>用户的草稿模块</p></div><div class="panel-group"><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_draft_list"><span class="parent">/draft</span>/list</a> <span class="methods"><a href="#draft_list_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_draft_list" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#draft_list_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>按创建时间倒序（新的在前） 分页获取自己的所有草稿</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="draft_list_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/draft</span>/list</h4></div><div class="modal-body"><div class="alert alert-info"><p>按创建时间倒序（新的在前） 分页获取自己的所有草稿</p></div><ul class="nav nav-tabs"><li class="active"><a href="#draft_list_get_request" data-toggle="tab">请求</a></li><li><a href="#draft_list_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="draft_list_get_request"><h3>Query参数</h3><ul><li><strong>token</strong>: <em>required (string)</em></li><li><strong>startAid</strong>: <em>(integer - default: 0)</em><p>接着哪个aid继续获取记录。分页获取时，这个值填上一页的最后一条记录的aid</p></li><li><strong>pageSize</strong>: <em>(integer - default: 10)</em><p>每页多少条记录，默认是10条</p></li><li><strong>startTime</strong>: <em>(integer - default: 0)</em><p>搜索起始时间(时间戳格式)</p></li><li><strong>endTime</strong>: <em>(integer - default: 当前时间)</em><p>搜索结束时间(时间戳格式)</p></li><li><strong>status</strong>: <em>(integer - default: 0)</em><p>状态过滤，0.全部；1.审核中；2.未提交审核草稿</p></li></ul></div><div class="tab-pane" id="draft_list_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>pageSize同请求</li><li>allCount是总记录条数</li><li>status取值: 0=草稿状态，1=提交待审核状态，2=被驳回</li><li>错误码：<ul><li>99901 系统错误</li><li>99902 缺少参数</li></ul></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "pageSize": 10,
    "allCount": 53,
    "data": [
        {
            "aid": 1,
            "title": "标题",
            "platform": "平台名称",
            "title": "活动标题",
            "mainImageUrl": "http://图片url",
            "tags": "标签1^标签2^标签3",
            "createTime": 1477044130,
            "status": 0,
        }
    ]
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_draft_get"><span class="parent">/draft</span>/get</a> <span class="methods"><a href="#draft_get_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_draft_get" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#draft_get_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>获取某篇草稿的内容</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="draft_get_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/draft</span>/get</h4></div><div class="modal-body"><div class="alert alert-info"><p>获取某篇草稿的内容</p></div><ul class="nav nav-tabs"><li class="active"><a href="#draft_get_get_request" data-toggle="tab">请求</a></li><li><a href="#draft_get_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="draft_get_get_request"><h3>Query参数</h3><ul><li><strong>token</strong>: <em>required (string)</em></li><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li></ul></div><div class="tab-pane" id="draft_get_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>错误码：<ul><li>99901 系统错误</li><li>99902 缺少参数</li><li>99903 aid不存在</li></ul></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "data": {
        "aid": 1,
        "platform": "平台名称",
        "title": "活动标题",
        "content1": "内容-活动核心利益",
        "content2": "内容-参与资格",
        "content3": "内容-其他",
        "mainImageUrl": "http://图片url",
        "targetUrl": "http://该文章对应的外链url",
        "createTime": 1477044130,
        "activityBeginTime": 1477044130,
        "activityEndTime": 1477144130,
        "moreImageUrl": "http://其他图片1^http://其他图片2",
        "tags": "标签1^标签2^标签3",
        "cid": 1,
        "column": "所属栏目, 上面的cid是栏目Id",
        "platformLogoUrl": "平台LOGO的url",
        "platformType": "平台类型",
        "registerMoney": "注册资本",
        "platformInfo1": "平台团队情况",
        "platformInfo2": "业务情况",
        "platformInfo3": "经营成果",
        "status": 2,
        "statusMemo": "被驳回的原因文字"
    }
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_draft_add"><span class="parent">/draft</span>/add</a> <span class="methods"><a href="#draft_add_post"><span class="badge badge_post">post</span></a></span></h4></div><div id="panel_draft_add" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#draft_add_post'" class="list-group-item"><span class="badge badge_post">post</span><div class="method_description"><p>增加新文章的草稿。 对于请求中的mainImage、moreImage1、moreImage2、moreImage3这4个图片，是这样处理的：</p><ol><li>如果有对应的File字段，则是上传图片</li><li>如果没有File字段，而有Url字段，则是使用该url值</li><li>如果File字段和Url字段都没有，则表示把该值清空</li></ol></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="draft_add_post"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post</span> <span class="parent">/draft</span>/add</h4></div><div class="modal-body"><div class="alert alert-info"><p>增加新文章的草稿。 对于请求中的mainImage、moreImage1、moreImage2、moreImage3这4个图片，是这样处理的：</p><ol><li>如果有对应的File字段，则是上传图片</li><li>如果没有File字段，而有Url字段，则是使用该url值</li><li>如果File字段和Url字段都没有，则表示把该值清空</li></ol></div><ul class="nav nav-tabs"><li class="active"><a href="#draft_add_post_request" data-toggle="tab">请求</a></li><li><a href="#draft_add_post_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="draft_add_post_request"><h3>Body</h3><p><strong>Type: application/x-www-form-urlencoded</strong></p><strong>Form参数</strong><ul><li><strong>token</strong>: <em>required (string)</em><p>当前用户的token</p></li><li><strong>platform</strong>: <em>required (string - maxLength: 60)</em><p>平台名称</p></li><li><strong>title</strong>: <em>required (string - maxLength: 150)</em><p>活动标题</p></li><li><strong>content1</strong>: <em>required (string)</em><p>内容-活动核心利益</p></li><li><strong>content2</strong>: <em>(string)</em><p>内容-参与资格</p></li><li><strong>content3</strong>: <em>(string)</em><p>内容-其他</p></li><li><strong>mainImageUrl</strong>: <em>(string)</em><p>主图片的URL</p></li><li><strong>mainImageFile</strong>: <em>(file)</em><p>上传的主图片. mainImageUrl和mainImageFileb必须有其一</p></li><li><strong>targetUrl</strong>: <em>required (string - maxLength: 300)</em><p>该文章对应的外链url</p></li><li><strong>activityBeginTime</strong>: <em>required (integer)</em><p>该文章对应的活动起始时间(时间戳格式)，为0时表示无效</p></li><li><strong>activityEndTime</strong>: <em>required (integer)</em><p>该文章对应的活动截止时间(时间戳格式)，为0时表示无效</p></li><li><strong>moreImage1Url</strong>: <em>(string)</em><p>其他图片1的URL, 会显示在文章尾部</p></li><li><strong>moreImage1File</strong>: <em>(file)</em><p>其他图片1的上传, 会显示在文章尾部</p></li><li><strong>moreImage2Url</strong>: <em>(string)</em><p>其他图片2的URL, 会显示在文章尾部</p></li><li><strong>moreImage2File</strong>: <em>(file)</em><p>其他图片2的上传, 会显示在文章尾部</p></li><li><strong>moreImage3Url</strong>: <em>(string)</em><p>其他图片3的URL, 会显示在文章尾部</p></li><li><strong>moreImage3File</strong>: <em>(file)</em><p>其他图片3的上传, 会显示在文章尾部</p></li><li><strong>tags</strong>: <em>required (string - maxLength: 100)</em><p>标签, 用^分割</p></li><li><strong>cid</strong>: <em>required (integer)</em><p>所属栏目</p></li><li><strong>platformLogoUrl</strong>: <em>(string - maxLength: 300)</em><p>平台LOGO的url</p></li><li><strong>platformType</strong>: <em>(string - maxLength: 60)</em><p>平台类型</p></li><li><strong>registerMoney</strong>: <em>(string - maxLength: 60)</em><p>注册资本</p></li><li><strong>platformInfo1</strong>: <em>(string)</em><p>平台团队情况</p></li><li><strong>platformInfo2</strong>: <em>(string)</em><p>业务情况</p></li><li><strong>platformInfo3</strong>: <em>(string)</em><p>经营成果</p></li><li><strong>commit</strong>: <em>required (boolean - default: false)</em><p>是否提交审核</p></li></ul></div><div class="tab-pane" id="draft_add_post_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>返回值中的aid是草稿文章的id</li><li>错误码：<ul><li>99901 系统错误</li><li>99902 缺少参数</li><li>130301 aid已经存在，不能重复添加</li></ul></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "aid": 1234
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_draft_save"><span class="parent">/draft</span>/save</a> <span class="methods"><a href="#draft_save_post"><span class="badge badge_post">post</span></a></span></h4></div><div id="panel_draft_save" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#draft_save_post'" class="list-group-item"><span class="badge badge_post">post</span><div class="method_description"><p>保存草稿。 对于请求中的mainImage、moreImage1、moreImage2、moreImage3这4个图片，是这样处理的：</p><ol><li>如果是file类型，则是上传图片</li><li>如果是string类型，而是url字符串</li><li>如果没有该字段，则表示把该值清空</li></ol></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="draft_save_post"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post</span> <span class="parent">/draft</span>/save</h4></div><div class="modal-body"><div class="alert alert-info"><p>保存草稿。 对于请求中的mainImage、moreImage1、moreImage2、moreImage3这4个图片，是这样处理的：</p><ol><li>如果是file类型，则是上传图片</li><li>如果是string类型，而是url字符串</li><li>如果没有该字段，则表示把该值清空</li></ol></div><ul class="nav nav-tabs"><li class="active"><a href="#draft_save_post_request" data-toggle="tab">请求</a></li><li><a href="#draft_save_post_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="draft_save_post_request"><h3>Body</h3><p><strong>Type: application/x-www-form-urlencoded</strong></p><strong>Form参数</strong><ul><li><strong>token</strong>: <em>required (string)</em><p>当前用户的token</p></li><li><strong>platform</strong>: <em>required (string - maxLength: 60)</em><p>平台名称</p></li><li><strong>title</strong>: <em>required (string - maxLength: 150)</em><p>活动标题</p></li><li><strong>content1</strong>: <em>required (string)</em><p>内容-活动核心利益</p></li><li><strong>content2</strong>: <em>(string)</em><p>内容-参与资格</p></li><li><strong>content3</strong>: <em>(string)</em><p>内容-其他</p></li><li><strong>mainImageUrl</strong>: <em>(string)</em><p>主图片的URL</p></li><li><strong>mainImageFile</strong>: <em>(file)</em><p>上传的主图片. mainImageUrl和mainImageFileb必须有其一</p></li><li><strong>targetUrl</strong>: <em>required (string - maxLength: 300)</em><p>该文章对应的外链url</p></li><li><strong>activityBeginTime</strong>: <em>required (integer)</em><p>该文章对应的活动起始时间(时间戳格式)，为0时表示无效</p></li><li><strong>activityEndTime</strong>: <em>required (integer)</em><p>该文章对应的活动截止时间(时间戳格式)，为0时表示无效</p></li><li><strong>moreImage1Url</strong>: <em>(string)</em><p>其他图片1的URL, 会显示在文章尾部</p></li><li><strong>moreImage1File</strong>: <em>(file)</em><p>其他图片1的上传, 会显示在文章尾部</p></li><li><strong>moreImage2Url</strong>: <em>(string)</em><p>其他图片2的URL, 会显示在文章尾部</p></li><li><strong>moreImage2File</strong>: <em>(file)</em><p>其他图片2的上传, 会显示在文章尾部</p></li><li><strong>moreImage3Url</strong>: <em>(string)</em><p>其他图片3的URL, 会显示在文章尾部</p></li><li><strong>moreImage3File</strong>: <em>(file)</em><p>其他图片3的上传, 会显示在文章尾部</p></li><li><strong>tags</strong>: <em>required (string - maxLength: 100)</em><p>标签, 用^分割</p></li><li><strong>cid</strong>: <em>required (integer)</em><p>所属栏目</p></li><li><strong>platformLogoUrl</strong>: <em>(string - maxLength: 300)</em><p>平台LOGO的url</p></li><li><strong>platformType</strong>: <em>(string - maxLength: 60)</em><p>平台类型</p></li><li><strong>registerMoney</strong>: <em>(string - maxLength: 60)</em><p>注册资本</p></li><li><strong>platformInfo1</strong>: <em>(string)</em><p>平台团队情况</p></li><li><strong>platformInfo2</strong>: <em>(string)</em><p>业务情况</p></li><li><strong>platformInfo3</strong>: <em>(string)</em><p>经营成果</p></li><li><strong>commit</strong>: <em>required (boolean - default: false)</em><p>是否提交审核</p></li><li><strong>aid</strong>: <em>required (integer)</em><p>要保存的草稿id</p></li></ul></div><div class="tab-pane" id="draft_save_post_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>返回值中的aid是草稿文章的id</li><li>错误码：<ul><li>99901 系统错误</li><li>99902 缺少参数</li><li>130401 aid不存在</li><li>130402 草稿提交审核后不允许修改</li></ul></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "aid": 1234
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_draft_delete"><span class="parent">/draft</span>/delete</a> <span class="methods"><a href="#draft_delete_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_draft_delete" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#draft_delete_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>删除草稿</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="draft_delete_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/draft</span>/delete</h4></div><div class="modal-body"><div class="alert alert-info"><p>删除草稿</p></div><ul class="nav nav-tabs"><li class="active"><a href="#draft_delete_get_request" data-toggle="tab">请求</a></li><li><a href="#draft_delete_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="draft_delete_get_request"><h3>Query参数</h3><ul><li><strong>token</strong>: <em>required (string)</em></li><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li></ul></div><div class="tab-pane" id="draft_delete_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>aid不存在会返回99903错误</p><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_draft_commit"><span class="parent">/draft</span>/commit</a> <span class="methods"><a href="#draft_commit_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_draft_commit" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#draft_commit_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>将草稿提交审核</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="draft_commit_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/draft</span>/commit</h4></div><div class="modal-body"><div class="alert alert-info"><p>将草稿提交审核</p></div><ul class="nav nav-tabs"><li class="active"><a href="#draft_commit_get_request" data-toggle="tab">请求</a></li><li><a href="#draft_commit_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="draft_commit_get_request"><h3>Query参数</h3><ul><li><strong>token</strong>: <em>required (string)</em></li><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li></ul></div><div class="tab-pane" id="draft_commit_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>aid不存在会返回99903错误</p><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_draft_cancel"><span class="parent">/draft</span>/cancel</a> <span class="methods"><a href="#draft_cancel_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_draft_cancel" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#draft_cancel_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>将审核状态的文章撤回成草稿状态</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="draft_cancel_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/draft</span>/cancel</h4></div><div class="modal-body"><div class="alert alert-info"><p>将审核状态的文章撤回成草稿状态</p></div><ul class="nav nav-tabs"><li class="active"><a href="#draft_cancel_get_request" data-toggle="tab">请求</a></li><li><a href="#draft_cancel_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="draft_cancel_get_request"><h3>Query参数</h3><ul><li><strong>token</strong>: <em>required (string)</em></li><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li></ul></div><div class="tab-pane" id="draft_cancel_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>aid不存在会返回99903错误</p><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Schema</strong>:</p><pre><code>{
  "$schema": "http://json-schema.org/draft-03/schema",
  "type": "object",
  "properties": {
    "ret": {
      "type": "integer",
      "required": true,
      "description": "0=成功, 非0表示失败, 错误码见协议的具体描述"
    },
    "msg": {
      "type": "string",
      "required": false,
      "description": "ret=0时，一般没有msg，在出错时可能有msg"
    }
  }
}
</code></pre><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "msg": "ok"
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_draft_upload"><span class="parent">/draft</span>/upload</a> <span class="methods"><a href="#draft_upload_post"><span class="badge badge_post">post</span></a></span></h4></div><div id="panel_draft_upload" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#draft_upload_post'" class="list-group-item"><span class="badge badge_post">post</span><div class="method_description"><p>上传文件</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="draft_upload_post"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_post">post</span> <span class="parent">/draft</span>/upload</h4></div><div class="modal-body"><div class="alert alert-info"><p>上传文件</p></div><ul class="nav nav-tabs"><li class="active"><a href="#draft_upload_post_request" data-toggle="tab">请求</a></li><li><a href="#draft_upload_post_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="draft_upload_post_request"><h3>Body</h3><p><strong>Type: application/x-www-form-urlencoded</strong></p><strong>Form参数</strong><ul><li><strong>token</strong>: <em>required (string)</em><p>回话ID</p></li><li><strong>image</strong>: <em>required (file)</em><p>文件信息</p></li></ul></div><div class="tab-pane" id="draft_upload_post_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><p>ret错误码</p><ul><li>参照公共错误码</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
  "ret": 0,
  "data": {
    "url": "图片url",
  }
}</code></pre></div></div></div></div></div></div></div></div></div></div><div class="panel panel-default"><div class="panel-heading"><h3 id="quanArticle" class="panel-title">/quanArticle</h3></div><div class="panel-body"><div class="top-resource-description"><p>圈子文章模块</p></div><div class="panel-group"><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_quanArticle_base"><span class="parent">/quanArticle</span>/base</a> <span class="methods"><a href="#quanArticle_base_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_quanArticle_base" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#quanArticle_base_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>获取一篇爆料文章的基本内容</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="quanArticle_base_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/quanArticle</span>/base</h4></div><div class="modal-body"><div class="alert alert-info"><p>获取一篇爆料文章的基本内容</p></div><ul class="nav nav-tabs"><li class="active"><a href="#quanArticle_base_get_request" data-toggle="tab">请求</a></li><li><a href="#quanArticle_base_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="quanArticle_base_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li></ul></div><div class="tab-pane" id="quanArticle_base_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>服务器执行异常会返回99901错误</li><li>没有填写aid会返回99902错误</li><li>aid不存在会返回99903错误</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "pre": "文章前一篇id，为0即最顶端",
    "next": "文章后一篇id，为-1即最底端",
    "data": {
        "aid": 1,
        "platform": "平台名称",
        "title": "活动标题",
        "content1": "内容-活动核心利益",
        "content2": "内容-参与资格",
        "content3": "内容-其他",
        "mainImageUrl": "http://图片url",
        "targetUrl": "http://该文章对应的外链url",
        "createTime": 1477044130,
        "activityBeginTime": 1477044130,
        "activityEndTime": 1477144130,
        "moreImageUrl": "http://其他图片1^http://其他图片2",
        "tags": "标签1^标签2^标签3",
        "cid": 1,
        "column": "所属栏目, 上面的cid是栏目Id",
        "platformLogoUrl": "平台LOGO的url",
        "platformType": "平台类型",
        "registerMoney": "注册资本",
        "platformInfo1": "平台团队情况",
        "platformInfo2": "业务情况",
        "platformInfo3": "经营成果",
        "uid": 1000432,
        "nick": "作者名称，上面的uid是作者Id"
    }
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_quanArticle_data"><span class="parent">/quanArticle</span>/data</a> <span class="methods"><a href="#quanArticle_data_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_quanArticle_data" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#quanArticle_data_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>获取一篇爆料文章的动态数据（评论数、靠谱数、不靠谱数）</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="quanArticle_data_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/quanArticle</span>/data</h4></div><div class="modal-body"><div class="alert alert-info"><p>获取一篇爆料文章的动态数据（评论数、靠谱数、不靠谱数）</p></div><ul class="nav nav-tabs"><li class="active"><a href="#quanArticle_data_get_request" data-toggle="tab">请求</a></li><li><a href="#quanArticle_data_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="quanArticle_data_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li></ul></div><div class="tab-pane" id="quanArticle_data_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>服务器执行异常会返回99901错误</li><li>没有填写aid会返回99902错误</li><li>aid不存在会返回99903错误</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "data": {
        "aid": 1,
        "readCount": 123,
        "commentCount": 24,
        "goodCount": 66,
        "badCount": 5
    }
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_quanArticle_comment"><span class="parent">/quanArticle</span>/comment</a> <span class="methods"><a href="#quanArticle_comment_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_quanArticle_comment" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#quanArticle_comment_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>分页获取评论列表</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="quanArticle_comment_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/quanArticle</span>/comment</h4></div><div class="modal-body"><div class="alert alert-info"><p>分页获取评论列表</p></div><ul class="nav nav-tabs"><li class="active"><a href="#quanArticle_comment_get_request" data-toggle="tab">请求</a></li><li><a href="#quanArticle_comment_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="quanArticle_comment_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li><li><strong>pageIndex</strong>: <em>required (integer)</em><p>请求页码，1为首页</p></li><li><strong>needCount</strong>: <em>required (integer)</em><p>每页数量，必须大于0</p></li><li><strong>order</strong>: <em>(integer)</em><p>排序规则，0为最新排序，1为最热排序，默认为0</p></li></ul></div><div class="tab-pane" id="quanArticle_comment_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>服务器执行异常会返回99901错误</li><li>缺少参数会返回99902错误</li><li>aid不存在会返回99903错误</li><li>参数异常会返回99904错误</li><li>data中的评论，pmid不为0，则表示回复的评论id</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
	"ret":0,
	"data":[
		{
			"pmid":0,
			"mid":1,
			"source":"",
			"icon":"",
			"nick":"",
			"uid":10001,
			"time":"0000-00-00 00:00:00",
			"replyCount":1,
			"goodCount":0,
			"aid":100,
			"content":"hello",
			"badCount":0
		},
		{
			"pmid":0,
			"mid":3,
			"source":"android客户端",
			"icon":"",
			"nick":"",
			"uid":10002,
			"time":"2017-02-18 20:46:43",
			"replyCount":0,
			"goodCount":0,
			"aid":100,
			"content":"评论2",
			"badCount":0
		},
		{
			"pmid":1,
			"mid":2,
			"source":"",
			"icon":"",
			"nick":"",
			"uid":10001,
			"time":"0000-00-00 00:00:00",
			"replyCount":0,
			"goodCount":0,
			"aid":100,
			"content":"hello1",
			"badCount":0
		}
	],
	"commentCount":2
}</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_quanArticle_addComment"><span class="parent">/quanArticle</span>/addComment</a> <span class="methods"><a href="#quanArticle_addComment_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_quanArticle_addComment" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#quanArticle_addComment_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>发表评论或回复评论（pmid不为空）</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="quanArticle_addComment_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/quanArticle</span>/addComment</h4></div><div class="modal-body"><div class="alert alert-info"><p>发表评论或回复评论（pmid不为空）</p></div><ul class="nav nav-tabs"><li class="active"><a href="#quanArticle_addComment_get_request" data-toggle="tab">请求</a></li><li><a href="#quanArticle_addComment_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="quanArticle_addComment_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li><li><strong>content</strong>: <em>required (string)</em><p>评论内容</p></li><li><strong>source</strong>: <em>(string)</em><p>评论来源(android客户端、iOS客户端、网页)</p></li><li><strong>pmid</strong>: <em>(integer)</em><p>回复的评论id</p></li></ul></div><div class="tab-pane" id="quanArticle_addComment_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>缺少参数会返回99902错误</li><li>aid不存在会返回99903错误</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
	"data":{
		"aid":100,
		"mid":9,
		"pmid":0,
		"content":"测试回复评论",
		"source":"android客户端",
		"time":"2017-02-19 00:42:44",
		"goodCount":0,
		"badCount":0,
		"replyCount":0
	}
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_quanArticle_addCommentVote"><span class="parent">/quanArticle</span>/addCommentVote</a> <span class="methods"><a href="#quanArticle_addCommentVote_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_quanArticle_addCommentVote" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#quanArticle_addCommentVote_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>对评论点赞或踩</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="quanArticle_addCommentVote_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/quanArticle</span>/addCommentVote</h4></div><div class="modal-body"><div class="alert alert-info"><p>对评论点赞或踩</p></div><ul class="nav nav-tabs"><li class="active"><a href="#quanArticle_addCommentVote_get_request" data-toggle="tab">请求</a></li><li><a href="#quanArticle_addCommentVote_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="quanArticle_addCommentVote_get_request"><h3>Query参数</h3><ul><li><strong>mid</strong>: <em>required (integer)</em><p>评论id</p></li><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li><li><strong>vote</strong>: <em>required (integer)</em><p>点赞或踩，0为好评，否则为差评</p></li></ul></div><div class="tab-pane" id="quanArticle_addCommentVote_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>服务器执行异常会返回99901错误</li><li>缺少参数会返回99902错误</li><li>正常操作后，会更新comment数据；重复操作，返回不会下带data</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
	"data":{
		"aid":100,
		"mid":9,
		"pmid":0,
		"content":"测试回复评论",
		"source":"android客户端",
		"time":"2017-02-19 00:42:44",
		"goodCount":1,
		"badCount":0,
		"replyCount":0
	}
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_quanArticle_addArticleVote"><span class="parent">/quanArticle</span>/addArticleVote</a> <span class="methods"><a href="#quanArticle_addArticleVote_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_quanArticle_addArticleVote" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#quanArticle_addArticleVote_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>对文章点赞或踩</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="quanArticle_addArticleVote_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/quanArticle</span>/addArticleVote</h4></div><div class="modal-body"><div class="alert alert-info"><p>对文章点赞或踩</p></div><ul class="nav nav-tabs"><li class="active"><a href="#quanArticle_addArticleVote_get_request" data-toggle="tab">请求</a></li><li><a href="#quanArticle_addArticleVote_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="quanArticle_addArticleVote_get_request"><h3>Query参数</h3><ul><li><strong>aid</strong>: <em>required (integer)</em><p>文章Id</p></li><li><strong>vote</strong>: <em>required (integer)</em><p>点赞或踩，0为好评，否则为差评</p></li></ul></div><div class="tab-pane" id="quanArticle_addArticleVote_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>服务器执行异常会返回99901错误</li><li>缺少参数会返回99902错误</li><li>重复操作会返回110601错误</li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_quanArticle_list"><span class="parent">/quanArticle</span>/list</a> <span class="methods"><a href="#quanArticle_list_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_quanArticle_list" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#quanArticle_list_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>按创建时间倒序（新的在前） 分页所有文章</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="quanArticle_list_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/quanArticle</span>/list</h4></div><div class="modal-body"><div class="alert alert-info"><p>按创建时间倒序（新的在前） 分页所有文章</p></div><ul class="nav nav-tabs"><li class="active"><a href="#quanArticle_list_get_request" data-toggle="tab">请求</a></li><li><a href="#quanArticle_list_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="quanArticle_list_get_request"><h3>Query参数</h3><ul><li><strong>startAid</strong>: <em>(integer - default: 0)</em><p>接着哪个aid继续获取记录。分页获取时，这个值填上一页的最后一条记录的aid</p></li><li><strong>pageSize</strong>: <em>(integer - default: 10)</em><p>每页多少条记录，默认是10条</p></li><li><strong>startTime</strong>: <em>(integer - default: 0)</em><p>搜索起始时间(时间戳格式)</p></li><li><strong>endTime</strong>: <em>(integer - default: 当前时间)</em><p>搜索结束时间(时间戳格式)</p></li><li><strong>sortType</strong>: <em>(integer - default: 0)</em><p>排序方式，0按创建时间倒序排序；1按阅读量倒序排序；2按评论数倒序排序</p></li></ul></div><div class="tab-pane" id="quanArticle_list_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>pageSize同请求</li><li>allCount是总记录条数</li><li>错误码：<ul><li>99901 系统错误</li><li>99902 缺少参数</li></ul></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
    "ret": 0,
    "pageSize": 10,
    "allCount": 53,
    "data": [
        {
            "aid": 1,
            "title": "标题",
            "platform": "平台名称",
            "title": "活动标题",
            "mainImageUrl": "http://图片url",
            "tags": "标签1^标签2^标签3",
            "createTime": 1477044130,
            "readCount": 0,
            "commentCount": 0,
            "badCount": 0,
            "goodCount": 0,
        }
    ]
}
</code></pre></div></div></div></div></div></div></div><div class="panel panel-white"><div class="panel-heading"><h4 class="panel-title"><a class="collapsed" data-toggle="collapse" href="#panel_quanArticle_search"><span class="parent">/quanArticle</span>/search</a> <span class="methods"><a href="#quanArticle_search_get"><span class="badge badge_get">get</span></a></span></h4></div><div id="panel_quanArticle_search" class="panel-collapse collapse"><div class="panel-body"><div class="list-group"><div onclick="window.location.href = '#quanArticle_search_get'" class="list-group-item"><span class="badge badge_get">get</span><div class="method_description"><p>搜索文章</p></div><div class="clearfix"></div></div></div></div></div><div class="modal fade" tabindex="0" id="quanArticle_search_get"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title" id="myModalLabel"><span class="badge badge_get">get</span> <span class="parent">/quanArticle</span>/search</h4></div><div class="modal-body"><div class="alert alert-info"><p>搜索文章</p></div><ul class="nav nav-tabs"><li class="active"><a href="#quanArticle_search_get_request" data-toggle="tab">请求</a></li><li><a href="#quanArticle_search_get_response" data-toggle="tab">响应</a></li></ul><div class="tab-content"><div class="tab-pane active" id="quanArticle_search_get_request"><h3>Query参数</h3><ul><li><strong>keySyr</strong>: <em>required (string)</em><p>搜索关键字</p></li><li><strong>beginAid</strong>: <em>required (integer)</em><p>文章开始ID</p></li><li><strong>sizeI</strong>: <em>required (integer)</em><p>文章数量</p></li></ul></div><div class="tab-pane" id="quanArticle_search_get_response"><h2>HTTP状态码<a href="http://httpstatus.es/200" target="_blank">200</a></h2><ul><li>错误码：<ul><li>99901 系统错误</li><li>99902 缺少参数</li></ul></li></ul><h3>Body</h3><p><strong>Type: application/json</strong></p><p><strong>Example</strong>:</p><pre><code>{
  "ret": 0,
  "data": [
    {
      "aid": 1,
      "platform": "平台名称",
      "title": "活动标题",
      "content1": "内容-活动核心利益",
      "content2": "内容-参与资格",
      "content3": "内容-其他",
      "mainImageUrl": "http://图片url",
      "targetUrl": "http://该文章对应的外链url",
      "createTime": 1477044130,
      "activityBeginTime": 1477044130,
      "activityEndTime": 1477144130,
      "moreImageUrl": "http://其他图片1^http://其他图片2",
      "tags": "标签1^标签2^标签3",
      "cid": 1,
      "column": "所属栏目, 上面的cid是栏目Id",
      "platformLogoUrl": "平台LOGO的url",
      "platformType": "平台类型",
      "registerMoney": "注册资本",
      "platformInfo1": "平台团队情况",
      "platformInfo2": "业务情况",
      "platformInfo3": "经营成果",
      "uid": 1000432,
      "nick": "作者名称，上面的uid是作者Id"
    }
  ]
}
</code></pre></div></div></div></div></div></div></div></div></div></div></div><div class="col-md-3"><div id="sidebar" class="hidden-print affix" role="complementary"><ul class="nav nav-pills nav-stacked"><li><a href="#user">/user</a></li><li><a href="#article">/article</a></li><li><a href="#index">/index</a></li><li><a href="#draft">/draft</a></li><li><a href="#quanArticle">/quanArticle</a></li></ul></div></div></div></div></body></html>